package io.gitee.zhangbinhub.admin.log.po

import io.gitee.zhangbinhub.admin.common.base.BaseQueryPo
import io.swagger.v3.oas.annotations.media.Schema

/**
 * @since JDK 11
 */
@Schema(description = "日志查询参数")
data class LogQueryPo(
    @field:Schema(description = "是否查询往日历史数据，true-往日历史，false-当日数据")
    var history: Boolean = false,

    @field:Schema(description = "客户端ip")
    var remoteIp: String? = null,

    @field:Schema(description = "网关ip")
    var gatewayIp: String? = null,

    @field:Schema(description = "请求路径")
    var path: String? = null,

    @field:Schema(description = "路由服务id")
    var serverId: String? = null,

    @field:Schema(description = "客户端名称")
    var clientName: String? = null,

    @field:Schema(description = "操作用户名称")
    var userName: String? = null,

    @field:Schema(description = "开始时间")
    var startTime: Long? = null,

    @field:Schema(description = "结束时间")
    var endTime: Long? = null,

    @field:Schema(description = "响应状态码")
    var responseStatus: Int? = null
) : BaseQueryPo()
